<?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>BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112919/bt-connection-timeouts-with-pawr-enabled</link><description>sdk-nrf: v2.7.0 
 
 When PAWR is enabled I no longer get connection timeouts as a callback to bt_conn_cb.connected with the conn_err parameter set when attempting to open a connection as a central. 
 Instead I get an error log from inside bt_hci_core</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jul 2024 14:01:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112919/bt-connection-timeouts-with-pawr-enabled" /><item><title>RE: BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/thread/496435?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 14:01:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9e7726-c7c8-4f36-a2a7-b0fe52136443</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Leon,&lt;/p&gt;
&lt;p&gt;The fix for this is merged here: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/75824,"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/75824&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;From that, we can be relatively sure that it will be in the next SDK release. However, on DevZone, we are not at liberty to talk about timeline. You will need to talk with a local Nordic sales representative&amp;nbsp;for that.&lt;/p&gt;
&lt;p&gt;Can the workaround solution that is discussed here work for you? If so, you can try to cherry pick the fix above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/thread/496371?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 08:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b77cf3d-0088-4b79-a144-7bd9e17d92fd</guid><dc:creator>Leon Weigel</dc:creator><description>&lt;p&gt;Any chance that this problem will be resolved in the SDK soon?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/thread/493828?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 08:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c82d438-9b01-46a8-b58d-2641cd59081e</guid><dc:creator>saty9pd</dc:creator><description>&lt;p&gt;That seems to work i now get a callback to my connection handler on timeout. Once the device it was trying to connect to became available it succeeded the next time&amp;nbsp;&lt;span&gt;bt_conn_le_create was called&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/thread/493640?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 12:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83d5ded-de68-43a6-98f6-a0ba5b75a65a</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Could you please try this workaround?&lt;/p&gt;
&lt;p&gt;Adding this line in &lt;em&gt;hci_core.c&lt;/em&gt; after&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;LOG_ERR(&amp;quot;Invalid connection complete event&amp;quot;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;enh_conn_complete((struct bt_hci_evt_le_enh_conn_complete *)evt);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The function&amp;nbsp;le_enh_conn_complete_v2 should then look like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void le_enh_conn_complete_v2(struct net_buf *buf)
{
 struct bt_hci_evt_le_enh_conn_complete_v2 *evt =
  (struct bt_hci_evt_le_enh_conn_complete_v2 *)buf-&amp;gt;data;

 if (evt-&amp;gt;adv_handle == BT_HCI_ADV_HANDLE_INVALID &amp;amp;&amp;amp;
     evt-&amp;gt;sync_handle == BT_HCI_SYNC_HANDLE_INVALID) {
  /* The connection was not created via PAwR, handle the event like v1 */
  enh_conn_complete((struct bt_hci_evt_le_enh_conn_complete *)evt);
 }
#if defined(CONFIG_BT_PER_ADV_RSP)
 else if (evt-&amp;gt;adv_handle != BT_HCI_ADV_HANDLE_INVALID &amp;amp;&amp;amp;
   evt-&amp;gt;sync_handle == BT_HCI_SYNC_HANDLE_INVALID) {
  /* The connection was created via PAwR advertiser, it can be handled like v1 */
  enh_conn_complete((struct bt_hci_evt_le_enh_conn_complete *)evt);
 }
#endif /* CONFIG_BT_PER_ADV_RSP */
#if defined(CONFIG_BT_PER_ADV_SYNC_RSP)
 else if (evt-&amp;gt;adv_handle == BT_HCI_ADV_HANDLE_INVALID &amp;amp;&amp;amp;
   evt-&amp;gt;sync_handle != BT_HCI_SYNC_HANDLE_INVALID) {
  /* Created via PAwR sync, no adv set terminated event, needs separate handling */
  struct bt_le_per_adv_sync *sync;

  sync = bt_hci_get_per_adv_sync(evt-&amp;gt;sync_handle);
  if (!sync) {
   LOG_ERR(&amp;quot;Unknown sync handle %d&amp;quot;, evt-&amp;gt;sync_handle);

   return;
  }

  bt_hci_le_enh_conn_complete_sync(evt, sync);
 }
#endif /* CONFIG_BT_PER_ADV_SYNC_RSP */
 else {
  LOG_ERR(&amp;quot;Invalid connection complete event&amp;quot;);
  enh_conn_complete((struct bt_hci_evt_le_enh_conn_complete *)evt);
 }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/thread/493597?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 09:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a6a18d6-fc3e-4ed2-9743-cb5a66a026a9</guid><dc:creator>saty9pd</dc:creator><description>&lt;p&gt;Sorry if I am using the wrong terminology.&lt;/p&gt;
&lt;p&gt;The central device (the one running the code I posted) is the one subscribing to the PAWR advertiser and sending responses back to it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/thread/493583?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 08:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a800628-ffe5-45f9-ba33-a2f9239e44f1</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi saty9pd,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I forgot to ask, for this and&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112920/pawr-prevents-cancelling-a-pending-connection,"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/112920/pawr-prevents-cancelling-a-pending-connection&lt;/a&gt;, what PAwR role is this central device in?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT connection timeouts with PAWR enabled</title><link>https://devzone.nordicsemi.com/thread/493527?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 21:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb458024-9bca-4c86-b9e4-d7bef763d4ce</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi saty9pd,&lt;/p&gt;
&lt;p&gt;Thank you for the information. I will relay this to our internal team. We will investigate this and get back to you.&lt;/p&gt;
&lt;p&gt;Unfortunately, we are facing abnormally high loading, and it might take one or two weeks before we can follow up. Our apologies for the inconvenience.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>