<?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>BLE_GAP_PHY_CODED connect immediate timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43211/ble_gap_phy_coded-connect-immediate-timeout</link><description>I&amp;#39;m extending an existing central application to support extended advertisement and CODED phy support. However, I have trouble connecting to a device advertising with CODED phy. Development is done on a nRF52840 dev-kit (nRF6828 rev. 0.12.0 2018.10).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Aug 2019 09:04:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43211/ble_gap_phy_coded-connect-immediate-timeout" /><item><title>RE: BLE_GAP_PHY_CODED connect immediate timeout</title><link>https://devzone.nordicsemi.com/thread/205231?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 09:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a17cbd6-0a57-4756-8c11-c45afb2103fb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Kim&lt;/p&gt;
&lt;p&gt;2. Please see this post for a thorough explanation of &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36721/sd_ble_gap_connect"&gt;sd_ble_gap_connect()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;3. If your application is set to BLE_GAP_PHY_AUTO, the SD_BLE_GAP_PHY_UPDATE function will select PHY based on the peer&amp;#39;s PHY preferences and the local link configuration. The PHY update procedure will for this case result in a PHY combination that respects the time constraints configured with sd_ble_cfg_set and the current link-layer data length. If the peer doesn&amp;#39;t support the PHY Update Procedure, the resulting PHY_UPDATE will have a status set to BLE_HCI_UNSUPPORTED_REMOTE_FEATURE.&lt;/p&gt;
&lt;p&gt;Note that BLE_GAP_PHY_AUTO will also be compatible with the BLE_GAP_PHY_2MBPS, so if you don&amp;#39;t want to connect to devices preferring that, you might want to take a look at how to decide the PHY by way of I.E. a button press, in our&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/testing-long-range-coded-phy-with-nordic-solution-it-simply-works-922075585"&gt;BLE long-range demo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GAP_PHY_CODED connect immediate timeout</title><link>https://devzone.nordicsemi.com/thread/205197?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 07:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c98aa127-8d85-4418-a809-e6230701b462</guid><dc:creator>Kim Djern&amp;#230;s</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After a long time I&amp;#39;m now coming back to this.&lt;/p&gt;
&lt;p&gt;I was wondering if I could get a more definite answer to #2 and #3?&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;Kim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GAP_PHY_CODED connect immediate timeout</title><link>https://devzone.nordicsemi.com/thread/168984?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 07:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5eb778a-be42-41de-a26b-8ce2f2cc09d6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Kim&lt;/p&gt;
&lt;p&gt;1. Can you try scanning and connecting using only BLE_GAP_PHY_CODED, just to make sure that the problem isn&amp;#39;t there. I think the problem is that when you get scan reports you don&amp;#39;t know if they are CODED or 1MBPS, so the timeout occurs because you try connecting a 1MBPS advertiser to a PHY scanner, or the other way around. Also see what happens when you try to connect in BLE_GAP_EVT_ADV_REPORT. You can try calling the function&amp;nbsp;nrf_ble_scan_connect_with_target in the BLE_GAP_EVT_ADV_REPORT as well, although I suspect it is already being called.&lt;/p&gt;
&lt;p&gt;2. Yes, I think so.&lt;/p&gt;
&lt;p&gt;3. I haven&amp;#39;t looked too much into this, but I suspect you have to specify the correct scan_phy parameter, although I am not sure about this. We might find out together!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>