<?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>How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98165/how-to-increase-the-packet-size-for-sd_ble_gattc_write</link><description>We are using nrf52832 with S132 for our application. 
 Central device connect to Peripheral using sd_ble_gap_connect() api and then uses sd_ble_gattc_write() to write the data. 
 We are currently able to send only 20 bytes per packet but we want to send</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Apr 2023 10:14:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98165/how-to-increase-the-packet-size-for-sd_ble_gattc_write" /><item><title>RE: How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/thread/421213?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 10:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c2c518-fb96-40c1-82c7-a0c37631a4ab</guid><dc:creator>WilliamRiley</dc:creator><description>&lt;p&gt;Thanks a lot for updating us about&amp;nbsp;&lt;span&gt;nrf52832 with S132 for our application. - &lt;a href="http://www.eliteassignment.co.uk/law-essay-help/"&gt;law essay writing service&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/thread/418565?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 11:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e84ae6f-c893-42cc-8ebb-9ec316fe37d8</guid><dc:creator>Haresh05</dc:creator><description>&lt;p&gt;It is working now.&lt;/p&gt;
&lt;p&gt;I had also changed the&amp;nbsp;BLE_GATT_ATT_MTU_DEFAULT value in&amp;nbsp;nrf5_sdk/softdevice/s132/headers/ble_gatt.h and due to that it was not initiating the data length update procedure.&lt;/p&gt;
&lt;p&gt;Thank you for your support&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/thread/418526?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 09:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf919447-1845-4485-9b7e-acc9fe151e9a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You need to initiate the data length update procedure on one of the sides (assuming the other handles the request). This is done with &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#gac4a6ef5c106107eb2a1707bb26f3245c"&gt;sd_ble_gap_data_length_update() &lt;/a&gt;(the same function as is used to respond). This can also be called from the SDK GATT module, if you take a look at the nrf_ble_gatt.c implementation in SDK 13. If you use that library, it will initiate a data length update procedure when handing the&amp;nbsp;EVT_CONNECTED, as long as&amp;nbsp;NRF_BLE_GATT_MAX_MTU_SIZE is set high. You can also take a look at the implementationin nrf_ble_gatt.c to see how you can do it manually if you do not use the SDK GATT module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/thread/418513?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 08:46:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00efa8b9-f2b5-4783-99e0-e90fdd957c23</guid><dc:creator>Haresh05</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have made the changes as per example but I am not getting the&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST in peripheral.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do I need to call any specific API on EVT_CONNECTED from central device?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/thread/417797?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 06:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810bb5a0-eb97-4fb7-9b84-5396b24c85e5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can refer to the Nordic UART Service (NUS) examples in SDK 13.0.0 as well for how to set the GATT max MTU. For the GAP part, you can see that the peripheral example calls &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gac4a6ef5c106107eb2a1707bb26f3245c"&gt;sd_ble_gap_data_length_update()&lt;/a&gt; for a&amp;nbsp;BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST event. This is for responding do a DLE update procedure. On the&amp;nbsp;other side&amp;nbsp;you should call the same function to initiate a data length update procedure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/thread/417786?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 05:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6caa6019-f6cd-478c-98b6-5f44cac4979b</guid><dc:creator>Haresh05</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry I forgot to mention that we are using&amp;nbsp;nRF5_SDK_13.0.0&lt;/p&gt;
&lt;p&gt;I have found the&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_c.html"&gt;Nordic UART Service Client&lt;/a&gt;&amp;nbsp;for central device and will follow that.&lt;/p&gt;
&lt;p&gt;Can you please let me know which example to follow for peripheral device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase the packet size for sd_ble_gattc_write</title><link>https://devzone.nordicsemi.com/thread/417709?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 13:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1ee8f22-79ad-4725-8adf-358ba0e0dc3a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You typically want to both enable larger GATT packets and larger GAP packets using data length extension. I suggest you take a look at the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_c.html"&gt;Nordic UART Service Client&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_eval.html"&gt;UART/Serial Port Emulation over BLE&lt;/a&gt;&amp;nbsp;from nRF5 SDK 17.1.0&amp;nbsp;for examples that do this on the central and peripheral respectively.&lt;/p&gt;
&lt;p&gt;Note particularily the value of&amp;nbsp;NRF_SDH_BLE_GATT_MAX_MTU_SIZE (247) and&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH (251) in sdk_config.h for both examples, and that in the central example, &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__ble__gatt.html?cp=9_1_6_2_12_8#gace7ab5e35085556648b816bf1828a070"&gt;nrf_ble_gatt_att_mtu_central_set()&lt;/a&gt;&amp;nbsp;is called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>