<?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>Send a response directly in the same &amp;quot;connection interval&amp;quot; in Bluetooth</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71948/send-a-response-directly-in-the-same-connection-interval-in-bluetooth</link><description>Hello For my application (which is based on the ble_thread_dyn_mtd_coap_cli example), I would like to be able to send a file (for an update) using bluetooth. To do this, I send a 100 byte data packet and wait for the acknowledgment before sending the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2021 14:53:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71948/send-a-response-directly-in-the-same-connection-interval-in-bluetooth" /><item><title>RE: Send a response directly in the same "connection interval" in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/296070?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 14:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb1be16-cf1c-417c-a3a1-2facca8f9a63</guid><dc:creator>QuentinD</dc:creator><description>&lt;p&gt;Thank you very much for your explanations :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send a response directly in the same "connection interval" in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/296068?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 14:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1258faf-59d6-4b5f-8224-f12836d1e2c9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This is the main reason we are using Write commands and not Write requests to transfer FW images our BLE DFU protocol. It&amp;#39;s simply too slow. &lt;/p&gt;
&lt;p&gt;You can read more about our dfu protocol here if you are interested: &lt;span class="item"&gt;&lt;a title="DFU protocol" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_dfu_transport.html?cp=7_1_3_5_2"&gt;DFU protocol&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send a response directly in the same "connection interval" in Bluetooth</title><link>https://devzone.nordicsemi.com/thread/295919?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 18:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68081e3d-ef55-46ac-aaad-a91ac4ab4e7b</guid><dc:creator>daviddedwin</dc:creator><description>&lt;p&gt;Getting an application level ACK using a GATT procedure will not be possible in the same connection interval as there is not enough time for the response to get to the event before it closes (it has only 150us) and additionally the Radio buffer needs to be filled for the response before the event starts which would be impossible , so the short answer to your question is No.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;However you are getting the Radio level acknowledgements for the Write Commands and the Handle Value Notifications and you can use them as acknowledgements.&lt;br /&gt;Handle Value Notifications will generate a&amp;nbsp;&lt;em&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/em&gt;&lt;span&gt;&amp;nbsp; and Write Command will generate a&amp;nbsp;&lt;em&gt;BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This means that you can send a lot of your packets and then get the acknowledgement events as they arrive.&amp;nbsp; This will allow you to send a lot lot of packets in a single event and also get acks in the same event. Will this work for you ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>