<?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>sd_ble_gap_connect with BLE_GAP_PHY_2MBPS causes SOFTDEVICE: ASSERTION FAILED</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37563/sd_ble_gap_connect-with-ble_gap_phy_2mbps-causes-softdevice-assertion-failed</link><description>I&amp;#39;m trying to completely understand extended advertisements and what is possible when initiating a connection to a device advertising using extended advertisements. I&amp;#39;m using an nRF52840-QIAAC0 with SDK15 and S140 6.1.0. I have a device advertising BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Aug 2018 14:29:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37563/sd_ble_gap_connect-with-ble_gap_phy_2mbps-causes-softdevice-assertion-failed" /><item><title>RE: sd_ble_gap_connect with BLE_GAP_PHY_2MBPS causes SOFTDEVICE: ASSERTION FAILED</title><link>https://devzone.nordicsemi.com/thread/145346?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 14:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2868c4f0-c0df-4e00-8a9f-535093ad5077</guid><dc:creator>jsample</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I would suggest maybe just changing the API documentation, because it seems like the sd_ble_gap_connect case behaves just like the sd_ble_gap_scan_start case where you&amp;#39;re basically just setting what primary phys will be used during scanning.&amp;nbsp; Unless the intent was to allow the user to not allow connections to be made on the 2Mbps phy by leaving it out of scan_phys in the sd_ble_gap_connect case, but it doesn&amp;#39;t seem to behave that way currently.&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_connect with BLE_GAP_PHY_2MBPS causes SOFTDEVICE: ASSERTION FAILED</title><link>https://devzone.nordicsemi.com/thread/145172?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 16:16:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a518642-8fff-498d-ba63-188424986c71</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for reporting this softdevice assertion.&lt;/p&gt;
[quote userid="8282" url="~/f/nordic-q-a/37563/sd_ble_gap_connect-with-ble_gap_phy_2mbps-causes-softdevice-assertion-failed"]but when I call sd_ble_gap_connect I get a SOFTDEVICE: ASSERTION FAILED error.&amp;nbsp; Should this work?&amp;nbsp;[/quote]
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;I think that the function should have returned NRF_ERROR_INVALID_PARAM in this case. I will add a new reply here when I have verified this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The scan_phys is used for the primary advertising channels. The scanner will accept all types of PHY’s for the secondary advertising channel PHYs, independent on the PHYs used in scan_phys. So the connection will be established on the secondary_phy, even if the secondary_phy is not a part of the scan_phys. So yes, you are connected on 2MBPS.&lt;br /&gt;The scanner can see what the secondary_phy is set to in the advertising report. To know what phy you are currently on, you can try to do a &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_2_1_0_2_1_2_23#gab845ddf7b56ef556ab9c2c74d5199ff8"&gt;phy update&lt;/a&gt; to the phy that you would like to use.&lt;/p&gt;
&lt;p&gt;Update:&lt;br /&gt;The API documentation states that scan_phys may be set to 2MBPS. If the SoftDevice assert for this configuration, this means that it is a SoftDevice bug. This bug does however not restrict any use-cases because 2Mbps is not used in scanning anyways. It was allowed in the API only to simplify application code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>