<?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>nRF5340 can&amp;#39;t connect to nRF52840 with coded phy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74629/nrf5340-can-t-connect-to-nrf52840-with-coded-phy</link><description>Hello, this is my current setup: - nRF52840 acting as NUS peripheral, with properly configured coded phy (nRF SDK) - nRF5340 acting as NUS central, with properly configured coded phy (nRF Connect SDK) 
 I have those testing devices: - OnePlus 6T - another</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 May 2021 08:30:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74629/nrf5340-can-t-connect-to-nrf52840-with-coded-phy" /><item><title>RE: nRF5340 can't connect to nRF52840 with coded phy</title><link>https://devzone.nordicsemi.com/thread/308090?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 08:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ece0821-cb78-49da-a3e7-c4f836078343</guid><dc:creator>Despair1337 </dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;the&amp;nbsp;&lt;strong&gt;conn_param&lt;/strong&gt; in&amp;nbsp;&lt;strong&gt;bt_scan_init_param&lt;/strong&gt; is &amp;quot;struct bt_le_conn_param&amp;quot;, not &amp;quot;struct bt_conn_le_create_param&amp;quot;. Anyway, I tried this snippet, there was some errors which I tried to fix, but in the end, the connection was failing (but differently than originally).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 can't connect to nRF52840 with coded phy</title><link>https://devzone.nordicsemi.com/thread/308073?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 07:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:003de138-338c-4627-b6d9-96b1e778fe07</guid><dc:creator>Despair1337 </dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;this fixed the issue,&lt;/p&gt;
&lt;p&gt;Thank you for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 can't connect to nRF52840 with coded phy</title><link>https://devzone.nordicsemi.com/thread/308069?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 07:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8d7fa6e-0ce0-4a99-9bb7-07b22f345b0b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Seems like the scanning module&amp;#39;s&amp;nbsp;&lt;span class="pl-smi"&gt;connect_if_match feature is not working when connecting on Coded Phy.&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-smi"&gt;Set&amp;nbsp;connect_if_match=0, and replace the&amp;nbsp;scan_filter_match() function with the one we use in e.g.&amp;nbsp;central_hr_coded sample. &lt;span&gt;bt_conn_le_create() will then be called with the correct settings.&amp;nbsp;&lt;/span&gt;See this link:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/samples/bluetooth/central_hr_coded/src/main.c#L122"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.5.1/samples/bluetooth/central_hr_coded/src/main.c#L122&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-smi"&gt;EDIT: Alternatively, setting the conn_param in scan_init() might also fix this issue. Snippet:&lt;br /&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;    struct bt_conn_le_create_param conn_params;

	conn_params = BT_CONN_LE_CREATE_PARAM(
			BT_CONN_LE_OPT_CODED | BT_CONN_LE_OPT_NO_1M,
			BT_GAP_SCAN_FAST_INTERVAL,
			BT_GAP_SCAN_FAST_INTERVAL);


	struct bt_scan_init_param scan_init = {
		.connect_if_match = 1,
		.scan_param = &amp;amp;scan_param,
		.conn_param = &amp;amp;conn_params
	};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 can't connect to nRF52840 with coded phy</title><link>https://devzone.nordicsemi.com/thread/308058?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 06:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:124c8f6a-4d55-4acc-8222-07d3c056c562</guid><dc:creator>Despair1337 </dc:creator><description>&lt;p&gt;Hi, is there anything required from me to speed up the process?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>