<?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>[PC-Ble-Driver] How To Increase the GATT Connect Link?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71036/pc-ble-driver-how-to-increase-the-gatt-connect-link</link><description>Hi Nordic Team, 
 
 Currently, i develop a software for fitting our application. 
 Env: Windows10, Controller: 52832 SDK: PC-Ble-Driver. 
 SDK Link: NordicSemiconductor/pc-ble-driver: Desktop library for Bluetooth low energy development (github.com) </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Feb 2021 07:58:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71036/pc-ble-driver-how-to-increase-the-gatt-connect-link" /><item><title>RE: [PC-Ble-Driver] How To Increase the GATT Connect Link?</title><link>https://devzone.nordicsemi.com/thread/292127?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2021 07:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0daf34d-5883-4699-8d1b-081aed7ac25c</guid><dc:creator>TimCheng</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1612166314684v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [PC-Ble-Driver] How To Increase the GATT Connect Link?</title><link>https://devzone.nordicsemi.com/thread/291792?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 13:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61ce122c-c7e3-4724-8836-d3459e79fb84</guid><dc:creator>TimCheng</dc:creator><description>&lt;p&gt;After setting as below, it report 18,NRF_ERROR_CONN_COUNT&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [PC-Ble-Driver] How To Increase the GATT Connect Link?</title><link>https://devzone.nordicsemi.com/thread/291767?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 11:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9978a0c-ff48-4711-b4ec-f93a8d4aec13</guid><dc:creator>TimCheng</dc:creator><description>&lt;p&gt;static uint32_t ble_cfg_set(uint8_t conn_cfg_tag)&lt;br /&gt;{&lt;br /&gt; const uint32_t ram_start = 0; // Value is not used by ble-driver&lt;br /&gt; uint32_t error_code;&lt;br /&gt; ble_cfg_t ble_cfg;&lt;/p&gt;
&lt;p&gt;// Configure the connection roles.&lt;br /&gt; memset(&amp;amp;ble_cfg, 0, sizeof(ble_cfg));&lt;/p&gt;
&lt;p&gt;ble_cfg.gap_cfg.role_count_cfg.adv_set_count = 1;//BLE_GAP_ADV_SET_COUNT_DEFAULT;&lt;br /&gt; ble_cfg.gap_cfg.role_count_cfg.periph_role_count = 0;&lt;br /&gt; ble_cfg.gap_cfg.role_count_cfg.central_role_count = 3;//MAX_PEER_COUNT;&lt;br /&gt; ble_cfg.gap_cfg.role_count_cfg.central_sec_count = 0;&lt;/p&gt;
&lt;p&gt;error_code = sd_ble_cfg_set(tuya_ble_port_adapter, BLE_GAP_CFG_ROLE_COUNT, &amp;amp;ble_cfg, ram_start);&lt;br /&gt; if (error_code != NRF_SUCCESS)&lt;br /&gt; {&lt;br /&gt; tuya_printf(&amp;quot;sd_ble_cfg_set() failed when attempting to set BLE_GAP_CFG_ROLE_COUNT. Error code: 0x%02X\n&amp;quot;, error_code);&lt;br /&gt; return error_code;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;ble_cfg, 0x00, sizeof(ble_cfg));&lt;br /&gt; ble_cfg.conn_cfg.conn_cfg_tag = conn_cfg_tag;&lt;br /&gt; //ble_cfg.conn_cfg.params.gap_conn_cfg.conn_count = 3;//MAX_PEER_COUNT;&lt;br /&gt; ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu = 247;&lt;/p&gt;
&lt;p&gt;error_code = sd_ble_cfg_set(tuya_ble_port_adapter, BLE_CONN_CFG_GATT, &amp;amp;ble_cfg, ram_start);&lt;br /&gt; if (error_code != NRF_SUCCESS)&lt;br /&gt; {&lt;br /&gt; tuya_printf(&amp;quot;sd_ble_cfg_set() failed when attempting to set BLE_CONN_CFG_GATT. Error code: 0x%02X\n&amp;quot;, error_code);&lt;br /&gt; return error_code;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;return NRF_SUCCESS;&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>