<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109328/synchronizing-timout-when-using-periodic-advertising-with-responses-pawr</link><description>Hello, 
 
 I am currently evaluating the new feature called Periodic Advertising with Responses (PAwR) using Nordic&amp;#39;s Softdevice controller. 
 Below you find project related information. 
 
 nRF52840 DK 
 nRF Connect SDK v2.6.0-rc1 
 nRF Connect Toolchain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Mar 2024 07:38:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109328/synchronizing-timout-when-using-periodic-advertising-with-responses-pawr" /><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/476336?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2024 07:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc3059a0-f879-458a-843b-dd346512ac14</guid><dc:creator>ATla5</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your explaination.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve checked out the fix&amp;nbsp;(zephyr sample repository) of the PaWR sample and it works.&lt;br /&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/475893?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 12:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbca21b4-ea1c-4b24-91ae-05eaa025f8a3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span dir="ltr"&gt;With regard to previously observed warning, the sample was trying to set the subevent data to an invalid subevent index, and this causes the warning to be reported by the controller.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The root cause of the issue seems to be scheduling conflict between subevents and passive scanner in the periodic_adv_rsp sample. In a previously suggested fix, scan_window (30ms + scheduling overhead) is added into periodic advertising interval.&lt;/p&gt;
&lt;p&gt;(subevent_interval + scan_window) * NUM_SUBEVENTS = (0x30 + 0x20) * NUM_SUBEVENTS = (60ms + 40ms) * NUM_SUBEVENTS&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Another (better) solution can be found in this PR - &lt;a href="https://github.com/nrfconnect/sdk-zephyr/pull/1589"&gt;fix PAWR sample&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/475424?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 14:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b159d159-f50e-4fa0-98cf-4f80d3ca5d9c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ATla5"]The advertising interval was too short (0xFF * 1.25ms = 318.75ms) since the given slot spacing (0x50 * 0.125ms = 10ms) and the number of subevents (5) and the subevent interval (0x30 * 1.25ms =&amp;nbsp; 60ms) led to a situation where the given subevents could not be processed within the given advertising interval, right?[/quote]
&lt;p&gt;I will get back to you regarding this probably during next week.&lt;/p&gt;
[quote user="ATla5"]which included ASCII characters such as &amp;quot;:&amp;quot; (colon) and &amp;quot;-&amp;quot; (dash). I have not found any restrictions given the Bluetooth device name. Do you know why these characters&amp;nbsp;cause an issue?[/quote]
&lt;p&gt;Regarding the Bluetooth device name, some changes (shown below) are needed in the periodic_adv_rsp sample.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type,
			 struct net_buf_simple *ad)
{
  ...
	if (strcmp(name, &amp;quot;PAwR: sync-sample&amp;quot;)) {
		return;
	}
  ...
}&lt;/pre&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/475359?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 10:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13e8d175-9c83-4101-bbe4-63515bc25399</guid><dc:creator>ATla5</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have tested your suggestion and these are the results and it looks like the expected outcome.&lt;br /&gt;Correct me if I am wrong - the adjustment for both the min. and max. interval depends on the&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;.response_slot_spacing = 0x50,&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;parameter. The advertising interval was too short (0xFF * 1.25ms = 318.75ms) since the given slot spacing (0x50 * 0.125ms = 10ms) and the number of subevents (5) and the subevent interval (0x30 * 1.25ms =&amp;nbsp; 60ms) led to a situation where the given subevents could not be processed within the given advertising interval, right?&lt;br /&gt;Therefore, the new advertising interval is (0x50 * 5 * 1.25ms = 500ms) is large enough given the parameters&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const struct bt_le_per_adv_param per_adv_params = {
	.interval_min = 0x50 * NUM_SUBEVENTS, /* 300 * 1.25ms = 500ms */
	.interval_max = 0x50 * NUM_SUBEVENTS, /* 300 * 1.25ms = 500ms */
	.options = 0,
	.num_subevents = NUM_SUBEVENTS, /* 5 */
	.subevent_interval = 0x30, /* 48 * 1.25ms = 60ms */
	.response_slot_delay = 0x5, /* 5 * 1.25ms = 6.25ms */
	.response_slot_spacing = 0x50, /* 80 * 0.125ms = 10ms */
	.num_response_slots = NUM_RSP_SLOTS, /* 5 */
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1711104161558v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="fontstyle0"&gt;Bluetooth&amp;reg; Core Specification Version 5.4 - Technical Overview&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the output of the RTT Viewer log files of both the periodic_adv_rsp and periodic_sync_rsp application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtt_5F00_log_5F00_pawr_5F00_adv_5F00_rsp_5F00_with_5F00_fix.log"&gt;devzone.nordicsemi.com/.../rtt_5F00_log_5F00_pawr_5F00_adv_5F00_rsp_5F00_with_5F00_fix.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtt_5F00_log_5F00_pawr_5F00_sync_5F00_rsp_5F00_with_5F00_fix.log"&gt;devzone.nordicsemi.com/.../rtt_5F00_log_5F00_pawr_5F00_sync_5F00_rsp_5F00_with_5F00_fix.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One more thing - The initial issue why no synchronisation was even possible was caused by the modified Kconfig option&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_DEVICE_NAME=&amp;quot;PAwR: sync-sample&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which included ASCII characters such as &amp;quot;:&amp;quot; (colon) and &amp;quot;-&amp;quot; (dash). I have not found any restrictions given the Bluetooth device name. Do you know why these characters&amp;nbsp;cause an issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ATla5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/475340?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 09:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7410266c-8ea1-4726-8e6e-373988885b19</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for providing the logs.&lt;br /&gt;&lt;br /&gt;Could you please try to manually modify 2 lines in main.c (per_adv_params) of the periodic_adv_rsp sample as shown below and run the sample again?&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;//.interval_min = 0xFF,
.interval_min = 0x50 * NUM_SUBEVENTS,
//.interval_max = 0xFF,
.interval_max = 0x50 * NUM_SUBEVENTS,&lt;/pre&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/475315?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 08:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a5165c9-18fc-40bd-bea0-ecb3dc34dc03</guid><dc:creator>ATla5</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have copied the original samples again to a separate folder, build and flashed the applications to the respective devices and captured the packet transfer at the periodic_sync_rsp device with a sniffer (nRF52840 Dongle) and logged the terminal output of both applications.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The synchronization works now but the HCI related warnings on the periodic_adv_rsp device remains. Let me know if you have any suggestions what causes these warnings.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are the &amp;quot;Received empty indication: subevent 0&amp;quot; indications at the periodic_sync_rsp terminal expected?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ATla5&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7633.pawr_5F00_sync_5F00_rsp_5F00_sniffer_5F00_log.json"&gt;devzone.nordicsemi.com/.../7633.pawr_5F00_sync_5F00_rsp_5F00_sniffer_5F00_log.json&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/term_5F00_log_5F00_pawr_5F00_sync_5F00_rsp.log"&gt;devzone.nordicsemi.com/.../term_5F00_log_5F00_pawr_5F00_sync_5F00_rsp.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/term_5F00_log_5F00_pawr_5F00_adv_5F00_rsp.log"&gt;devzone.nordicsemi.com/.../term_5F00_log_5F00_pawr_5F00_adv_5F00_rsp.log&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/475219?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 17:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ec3bdb0-6de1-45a7-b55e-018c89f177e4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ATla5"]Does this issue occur when you test these samples too?[/quote]
&lt;p&gt;I have observed the same behavior as shown in your initial post on adv side, and somewhat different on sync side probably because I used NCS v2.6.0.&lt;/p&gt;
[quote user="ATla5"]Is anything required besides the two samples (periodic_adv_rsp, periodic_sync_rsp) each running on a separate nRF52840 DK?[/quote]
&lt;p&gt;We will need to look into this further, but It would be useful if we could have a sniffer log. Could you provide it?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/475019?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 08:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be187a4-64ea-4544-b82f-c528d0b07ec8</guid><dc:creator>ATla5</dc:creator><description>&lt;p&gt;Hello Dejan,&lt;br /&gt;&lt;br /&gt;Even with another NCS/Zephyr version such as v2.6.0 as you have suggested the problem remains.&lt;br /&gt;Does this issue occur when you test these samples too?&lt;br /&gt;&lt;br /&gt;Is anything required besides the two samples (periodic_adv_rsp, periodic_sync_rsp) each running on a separate nRF52840 DK?&lt;br /&gt;&lt;br /&gt;Best regards&lt;br /&gt;&lt;br /&gt;ATla5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Synchronizing timout when using Periodic Advertising with Responses (PAwR)</title><link>https://devzone.nordicsemi.com/thread/474437?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 18:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d84d79e-9040-4304-b535-df5a9d9575fb</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you please try the same samples using NCS v2.6.0?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>